import { defineStore } from 'pinia';
import {ref} from 'vue'

export const useProjectStore = defineStore('project',() => {
    const selectedProject = ref({});
    const setSelectedProject = (project) => {
        selectedProject.value = project;
    };
    const removeSelectedProject = () => {
        selectedProject.value = {};
    };

    return {
        selectedProject,
        setSelectedProject,
        removeSelectedProject
    };
});